package org.vectrics.history;

import java.util.Date;

import org.vectrics.common.db.RecordObject;
import org.vectrics.history.ObjectHistory;
import org.vectrics.user.Person;
import org.apache.log4j.Logger;


/**
 * @hibernate.class
 *  table="recruit_job_hist"
 *  dynamic-update="true"
 */
public class ObjectHistory implements RecordObject {
	private transient static Logger log = Logger.getLogger(ObjectHistory.class);
	private String objectType = null;
	private Long objectId = null;
	private Date date = null;
	private String action;
	private String description;
	private Long id = null;
	private Person person = null;



	/**
	 */
	public ObjectHistory() {
		super();
		setDate(new Date());
	}
	
    /**
     * @return Returns the person.
     */
    public Person getPerson() {
        return person;
    }
    /**
     * @param person The person to set.
     */
    public void setPerson(Person person) {
        this.person = person;
    }
	/**
	 * @return
	 */
	public static Logger getLog() {
		return log;
	}

	/**
	 * @param log
	 */
	public static void setLog(Logger log) {
		ObjectHistory.log = log;
	}

	/**
	 * @return
	 */
	public String getAction() {
		return action;
	}

	/**
	 * @param action
	 */
	public void setAction(String action) {
		this.action = action;
	}

	/**
	 * @return
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return
	 */
	public String getObjectType() {
		return objectType;
	}

	/**
	 * @param objectType
	 */
	public void setObjectType(String objectType) {
		this.objectType = objectType;
	}


	public Long getId() {
		return id;
	}

	public void setId(Long uid) {
		this.id = uid;
	}

	/**
	 * @return
	 */
	public Long getObjectId() {
		return objectId;
	}

	/**
	 * @param objectId
	 */
	public void setObjectId(Long objectId) {
		this.objectId = objectId;
	}

}
